package com.atguigu03._extends.exer2;

/**
 * @author NoobMaster69  * @date 2024/5/30 0030 星期四 14:06
 */
public class Cylinder extends Circle{
    private double length;

    public Cylinder() {
        length = 1;
    }

    public Cylinder(double length) {
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double findVolume(){

        return length *length *Math.PI;
    }

}
